public class Rectangle extends Graphical{
    private double a;

    public double getA() {
        return a;
    }

    public void setA(double a) {
        this.a = a;
    }

    public double getB() {
        return b;
    }

    public void setB(double b) {
        this.b = b;
    }

    private double b;
    Rectangle(){
        super.draw();
    }

    public void area(){
        System.out.println(a*b);
    }

    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.setA(1.0);
        rectangle.setB(6.6);
        rectangle.area();
    }
}
